﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Configuration;
using System.Collections.Specialized;

namespace GenUtil
{
    public static class Settings
    {
        //public static ApplicationContext AppContext
        //{
        //    get
        //    {
        //        ApplicationContext context;
        //        if (HttpContext.Current.Application["AppContext"] == null)
        //        {
        //            context = new ApplicationContext();
        //            HttpContext.Current.Application.Add("AppContext", context);

        //        }
        //        else
        //            context = (ApplicationContext)HttpContext.Current.Application["AppContext"];

        //        return context;

        //    }

        //}
        //public static IrpSessionContext ChildSessionContext
        //{

        //    get
        //    {
        //        IrpSessionContext context;
        //        if (HttpContext.Current.Session["ChildSessionContext"] == null)
        //        {
        //            context = new IrpSessionContext();
        //            ChildSessionContext = context;

        //        }
        //        else
        //            context = (IrpSessionContext)HttpContext.Current.Session["ChildSessionContext"];

        //        return context;

        //    }
        //    set
        //    {
        //        HttpContext.Current.Session.Remove("ChildSessionContext");
        //        HttpContext.Current.Session.Add("ChildSessionContext", value);

        //    }


        //}

        //public static IrpSessionContext SessionContext
        //{

        //    get
        //    {
        //        IrpSessionContext context;
        //        if (HttpContext.Current.Session["SessionContext"] == null)
        //        {
        //            context = new IrpSessionContext();
        //            SessionContext = context;

        //        }
        //        else
        //            context = (IrpSessionContext)HttpContext.Current.Session["SessionContext"];

        //        return context;
        //    }
        //    set
        //    {
        //        HttpContext.Current.Session.Remove("SessionContext");
        //        HttpContext.Current.Session.Add("SessionContext", value);
        //    }
        //}
        //public static String ANAExtProviderName
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        return CommonSettings["ANAExtProviderName"];
        //    }
        //}
        //public static String ANAProviderName
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        return CommonSettings["ANAProviderName"];
        //    }
        //}
        //public static Boolean ANAUserWhileClientCreate
        //{
        //    get
        //    {
        //        Boolean result = false;
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        string value = CommonSettings["ANAUserWhileClientCreate"];
        //        if (value.Equals("true", StringComparison.OrdinalIgnoreCase))
        //            result = true;
        //        else
        //            result = false;

        //        return result;
        //    }
        //}


        //public static String ANAExtAdminId
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        return CommonSettings["ANAExtAdminId"];
        //    }
        //}
        //public static String ANAExtAdminPass
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        return CommonSettings["ANAExtAdminPass"];
        //    }
        //}


        //public static String ANAAdminUserId
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        return CommonSettings["ANAAdminUserId"];
        //    }
        //}
        //public static String ANADefaultPrivilege
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        return CommonSettings["ANADefaultPrivilege"];
        //    }
        //}
        //public static String ANAUserPrefix
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        return CommonSettings["ANAUserPrefix"];
        //    }
        //}
        //public static String ANAAdminPass
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        return CommonSettings["ANAAdminPass"];
        //    }
        //}

        //public static String ANAUrl
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        return CommonSettings["ANAUrl"];
        //    }
        //}
        //// started by Manish on 16-Aug-2007 for Intranet URL A&A
        //public static String ANAIntranetUrl
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        return CommonSettings["ANAIntranetUrl"];
        //    }
        //}
        //// ended by Manish on 16-Aug-2007 for Intranet URL A&A
        //public static String ANAAppId
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        return CommonSettings["ANAAppId"];
        //    }
        //}

        //public static String ANAOrAd
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        return CommonSettings["ANAOrAd"];
        //    }
        //}
        //public static String InternalUserIpRange
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        return CommonSettings["InternalUserIpRange"];
        //    }
        //}
        //public static String Version
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/commonKeys");
        //        return CommonSettings["Version"];
        //    }

        //}

        //public static String BaseJuris
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/commonKeys");

        //        return CommonSettings["BaseJuris"];
        //    }
        //}

        //public static String CelticMailServer
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/MailSettings");
        //        return CommonSettings["CelticMailServer"];
        //    }
        //}
        //public static String CelticAddLine3
        //{
        //    get
        //    {
        //        ConfigManager configObj = new ConfigManager();
        //        return configObj.getODOWProperty("invoicesetting", "CelticAddLine3");
        //    }
        //}

        //public static String CelticMailAddress
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/MailSettings");
        //        return CommonSettings["CelticMailAddress"];
        //    }
        //}
        //public static String CelticMailAddressFromDisplayName
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/MailSettings");
        //        return CommonSettings["CelticMailAddressFromDisplayName"];
        //    }
        //}
        //public static String CelticMailMessageBody
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/MailSettings");
        //        return CommonSettings["CelticMailMessageBody"];
        //    }
        //}
        //public static String CelticHeader1
        //{
        //    get
        //    {
        //        ConfigManager configObj = new ConfigManager();
        //        return configObj.getODOWProperty("invoicesetting", "CelticHeader1");
        //    }
        //}
        //public static String CelticAddLine1
        //{
        //    get
        //    {
        //        ConfigManager configObj = new ConfigManager();
        //        return configObj.getODOWProperty("invoicesetting", "CelticAddLine1");
        //    }
        //}
        //public static String CelticAddLine2
        //{
        //    get
        //    {
        //        ConfigManager configObj = new ConfigManager();
        //        return configObj.getODOWProperty("invoicesetting", "CelticAddLine2");
        //    }
        //}
        //public static String KSPhoneno
        //{
        //    get
        //    {
        //        ConfigManager configObj = new ConfigManager();
        //        return configObj.getODOWProperty("invoicesetting", "KSPhoneno");
        //    }
        //}
        //public static String KSFax
        //{
        //    get
        //    {
        //        ConfigManager configObj = new ConfigManager();
        //        return configObj.getODOWProperty("invoicesetting", "KSFaxno");
        //    }
        //}
        //public static String KSEMail
        //{
        //    get
        //    {
        //        ConfigManager configObj = new ConfigManager();
        //        return configObj.getODOWProperty("invoicesetting", "KSEMail");
        //    }
        //}
        //public static String KSHeader
        //{
        //    get
        //    {
        //        ConfigManager configObj = new ConfigManager();
        //        return configObj.getODOWProperty("invoicesetting", "KSHeader");
        //    }
        //}





        //public static String BaseJurisDetails
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/commonKeys");
        //        return CommonSettings["BaseJurisDetails"];
        //    }

        //}

        public static ConnectionStringSettings StudentDatabase
        {
            get
            {
                ConnectionStringSettings Temp = new ConnectionStringSettings();
                Temp.ConnectionString = ConfigurationManager.ConnectionStrings["StudentDatabase"].ConnectionString;
                Temp.ProviderName = ConfigurationManager.ConnectionStrings["StudentDatabase"].ProviderName;
                return Temp;

            }
        }

        ////Added By Alok
        ////Date 26/05/09 For Get GeoDatabase ConnectionString And Provider Name.
        //public static ConnectionStringSettings GeoDatabase
        //{
        //    get
        //    {
        //        ConnectionStringSettings Temp = new ConnectionStringSettings();
        //        Temp.ConnectionString = ConfigurationManager.ConnectionStrings["GeoDatabase"].ConnectionString;
        //        Temp.ProviderName = ConfigurationManager.ConnectionStrings["GeoDatabase"].ProviderName;
        //        return Temp;
        //    }
        //}
        ////Added by Biji for CELTICGIS
        //public static ConnectionStringSettings GeoDatabaseCELTICGIS
        //{
        //    get
        //    {
        //        ConnectionStringSettings Temp = new ConnectionStringSettings();
        //        Temp.ConnectionString = ConfigurationManager.ConnectionStrings["GeoDatabaseCELTICGIS"].ConnectionString;
        //        Temp.ProviderName = ConfigurationManager.ConnectionStrings["GeoDatabaseCELTICGIS"].ProviderName;
        //        return Temp;
        //    }
        //}
        ////Added by Biji for Bridge details from Celtic18
        //public static ConnectionStringSettings GeoDatabaseCELTICGIS_18
        //{
        //    get
        //    {
        //        ConnectionStringSettings Temp = new ConnectionStringSettings();
        //        Temp.ConnectionString = ConfigurationManager.ConnectionStrings["GeoDatabaseCELTICGIS18"].ConnectionString;
        //        Temp.ProviderName = ConfigurationManager.ConnectionStrings["GeoDatabaseCELTICGIS18"].ProviderName;
        //        return Temp;
        //    }
        //}


        //public static ConnectionStringSettings McsAuthDatabase
        //{

        //    get
        //    {


        //        ConnectionStringSettings Temp = new ConnectionStringSettings();
        //        Temp.ConnectionString = ConfigurationManager.ConnectionStrings["McsAuthDatabase"].ConnectionString;
        //        Temp.ProviderName = ConfigurationManager.ConnectionStrings["McsAuthDatabase"].ProviderName;
        //        return Temp;

        //    }
        //}

        //public static String CelticHeader
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/commonKeys");
        //        return CommonSettings["CelticHeader"];
        //    }

        //}

        //public static String CorrespondHeader
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/commonKeys");
        //        return CommonSettings["CorrespondHeader"];
        //    }

        //}

        //public static String ADORADAM
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");

        //        return CommonSettings["AD|ADAM"];
        //    }
        //}

        //public static String LdapPath
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        return CommonSettings["LdapPath"];
        //    }

        //}

        //public static String ActiveDomain
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        return CommonSettings["ActiveDomain"];
        //    }
        //}

        //public static String AzAppName
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        return CommonSettings["AzAppName"];
        //    }
        //}

        //public static String AzStorePath
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        return CommonSettings["AzStorePath"];
        //    }
        //}

        //public static String ProtocolPath
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/database");
        //        return CommonSettings["Protocol"] + "://";
        //    }
        //}

        //public static String Operation
        //{
        //    set
        //    {
        //        if (value.Length != 0)
        //            HttpContext.Current.Session.Add("Operation", value.Trim());
        //        else
        //            HttpContext.Current.Session.Remove("Operation");

        //    }
        //    get
        //    {
        //        if (HttpContext.Current.Session["Operation"] != null)
        //        {
        //            return HttpContext.Current.Session["Operation"].ToString();
        //        }
        //        else
        //            return "";


        //    }

        //}
        //public static String Status
        //{
        //    set
        //    {
        //        if (value.Length != 0)
        //        {
        //            HttpContext.Current.Session.Add("Status", value.Trim());

        //        }
        //        else
        //            HttpContext.Current.Session.Remove("Status");
        //    }

        //    get
        //    {
        //        if (HttpContext.Current.Session["Status"] != null)
        //        {
        //            return HttpContext.Current.Session["Status"].ToString();
        //        }
        //        else
        //            return "";
        //    }

        //}

        //public static void ClearSession()
        //{
        //    HttpContext.Current.Session.Clear();
        //}

        ////Added by Jasmita on 10th Sept,2008 for changes related to mantis issue no.6692
        //public static void DoWebProLogicForEnt(Boolean ispopup, params TextBox[] paras)
        //{
        //    IrpSessionContext context = Settings.SessionContext;
        //    String[] role = Roles.GetRolesForUser();

        //    if (role.Length != 0 && (role[0] == CustomRoles.ExtUser || role[0] == CustomRoles.ProcessingAgent))
        //    {
        //        int can = context.getCan();

        //        if (can == 0 && (role[0] == CustomRoles.ProcessingAgent || role[0] == CustomRoles.ExtUser))
        //        {
        //            if (ispopup)
        //            {
        //                string url = "~/UnAuthorizedPage.aspx";
        //                HttpContext.Current.Response.Redirect(url);
        //            }
        //            else
        //            {
        //                if (role[0] == CustomRoles.ProcessingAgent)
        //                {
        //                    HttpContext.Current.Response.Redirect("~/Enterprise/Client/SelectAccount.aspx?FromMenu=" + ODOWConstants.AppTypeCode.ESCROW);
        //                }
        //                else if (role[0] == CustomRoles.ExtUser)
        //                {
        //                    Settings.Status = "User not assigned any Account No.";
        //                    HttpContext.Current.Response.Redirect("~/Enterprise/Acknowledge.aspx");
        //                }
        //            }
        //        }

        //        if (paras.Length == 1)
        //        {
        //            TextBox CanTxt = (TextBox)paras[0];
        //            CanTxt.Text = can.ToString();
        //            CanTxt.Enabled = false;
        //        }

        //    }
        //}

        //public static void DoWebProLogic(Boolean ispopup, params TextBox[] paras)
        //{
        //    DoWebProLogicForIrpIfta(ispopup, true, paras);
        //}
        //public static void DoWebProLogicForIrpIfta(Boolean ispopup, Boolean isIfta, params TextBox[] paras)
        //{
        //    IrpSessionContext context = Settings.SessionContext;
        //    String[] role = Roles.GetRolesForUser();

        //    if (role.Length != 0 && (role[0] == CustomRoles.ExtUser || role[0] == CustomRoles.ProcessingAgent))
        //    {
        //        int can = context.getCan();

        //        //Modified by Jasmita on 26th August,2008 to resolve an issue in web processing logic for external user login
        //        //short fleet = context.getFleetNumber();
        //        short fleet = context.getFleetNumberFromSelectClient();
        //        //--------------------------------------------------------------//

        //        if (can == 0 && (role[0] == CustomRoles.ProcessingAgent || role[0] == CustomRoles.ExtUser))
        //        {
        //            if (ispopup)
        //            {
        //                Settings.Status = "User not assigned any Client Id.";
        //                string url = "~/UnAuthorizedPage.aspx";
        //                HttpContext.Current.Response.Redirect(url);
        //            }
        //            // MSG test  HttpContext.Current.Response.Write("<script type='text/javascript'>javascript:window.close();</script>");
        //            else if (isIfta)
        //            {
        //                if (role[0] == CustomRoles.ProcessingAgent)
        //                {
        //                    HttpContext.Current.Response.Redirect("~/ifta/SelectCan.aspx?FromMenu=" + ODOWConstants.AppTypeCode.IFTA);
        //                }
        //                else if (role[0] == CustomRoles.ExtUser)
        //                {
        //                    Settings.Status = "User not assigned any Client Id.";
        //                    HttpContext.Current.Response.Redirect("~/ifta/ifta_home.aspx");
        //                }
        //            }
        //            else
        //            {
        //                if (role[0] == CustomRoles.ProcessingAgent)
        //                {
        //                    HttpContext.Current.Response.Redirect("~/ifta/SelectCan.aspx?FromMenu=" + ODOWConstants.AppTypeCode.IFTA);
        //                }
        //                else if (role[0] == CustomRoles.ExtUser)
        //                {
        //                    Settings.SessionContext.IrpMessage = "User not assigned any Client Id.";
        //                    HttpContext.Current.Response.Redirect(ODOWConstants.Urls.MAIN_MENU_ACKNOWLEDGE);
        //                }

        //            }
        //        }

        //        /* Commented by Jasmita on 22nd August,2008 for changes related to Service Provider Implementation for IRP
        //         * 
        //        foreach (TextBox item in paras)
        //        {
        //            item.Text = can.ToString();
        //            item.Enabled = false;
        //        }*/

        //        //Added by Jasmita on 22nd August,2008 for changes related to Service Provider Implementation for IRP
        //        if (paras.Length > 1)
        //        {
        //            TextBox CanTxt = (TextBox)paras[0];
        //            CanTxt.Text = can.ToString();
        //            CanTxt.Enabled = false;
        //            if (fleet != 0)
        //            {
        //                TextBox FleetTxt = (TextBox)paras[1];
        //                FleetTxt.Text = fleet.ToString();
        //                FleetTxt.Enabled = false;
        //            }
        //        }
        //        else if (paras.Length == 1)
        //        {
        //            TextBox CanTxt = (TextBox)paras[0];
        //            CanTxt.Text = can.ToString();
        //            CanTxt.Enabled = false;
        //        }
        //        //----------------------------------------------------------------//
        //    }
        //}

        //public static void DoWebProLogicForPermit(Boolean ispopup, Boolean isPermit, params TextBox[] paras)
        //{
        //    IrpSessionContext context = Settings.SessionContext;
        //    String[] role = Roles.GetRolesForUser();

        //    if (role.Length != 0 && (role[0] == CustomRoles.ExtUser || role[0] == CustomRoles.ProcessingAgent))
        //    {
        //        int accountNo = context.getPermitAccountNo();

        //        if (accountNo == 0 && (role[0] == CustomRoles.ProcessingAgent || role[0] == CustomRoles.ExtUser))
        //        {
        //            if (ispopup)
        //            {
        //                string url = "~/UnAuthorizedPage.aspx";
        //                HttpContext.Current.Response.Redirect(url);
        //            }
        //            else
        //            {
        //                if (role[0] == CustomRoles.ProcessingAgent)
        //                {
        //                    HttpContext.Current.Response.Redirect("~/Enterprise/Client/SelectAccount.aspx?FromMenu=" + ODOWConstants.AppTypeCode.ODOW);
        //                }
        //                if (role[0] == CustomRoles.ExtUser)
        //                {
        //                    Settings.Status = "User not assigned any Account No.";
        //                    if (isPermit)
        //                    {
        //                        HttpContext.Current.Response.Redirect("~/ODOW_Default.aspx");
        //                    }
        //                    else
        //                    {
        //                        HttpContext.Current.Response.Redirect("~/Enterprise/Default.aspx");
        //                    }
        //                }
        //            }

        //        }
        //        if (paras.Length > 0)
        //        {
        //            TextBox accountNoTxt = (TextBox)paras[0];
        //            accountNoTxt.Text = accountNo.ToString();
        //            accountNoTxt.ReadOnly = true;
        //        }
        //    }
        //}
        //static public void HideControlsIfWebPro(params WebControl[] controls)
        //{
        //    String[] roles = Roles.GetRolesForUser();
        //    if (roles != null && roles.Length != 0 && controls.Length != 0 && (roles[0] == CustomRoles.ExtUser || roles[0] == CustomRoles.ProcessingAgent))
        //    {
        //        foreach (WebControl item in controls)
        //            item.Visible = false;
        //    }
        //}
        ////Purpose   : To implement Fax Facility

        //public static String FaxGeneralSubject
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FaxGeneralSubject"];
        //    }
        //}

        ////Purpose   : To implement Fax XML File subject dynamic

        //public static String FaxSubjectRenewalNotice
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FaxSubjectRenewalNotice"];
        //    }
        //}
        ////Purpose   : To implement Fax XML File subject dynamic

        //public static String FaxSubjectIftaLicense
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FaxSubjectIftaLicense"];
        //    }
        //}

        //public static String FaxSubjectIftaShippingReport
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FaxSubjectIftaShippingReport"];
        //    }
        //}

        //public static String FaxSubjectIftaTempPermit
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FaxSubjectIftaTempPermit"];
        //    }
        //}

        //public static String FaxSubjectIftaSuspensionLetter
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FaxSubjectIftaSuspensionLetter"];
        //    }
        //}

        //public static String FaxSubjectIftaTaxReturn
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FaxSubjectIftaTaxReturn"];
        //    }
        //}

        ////*** Added by Jigar on 07th Feb 08 @ 3:33 PM to show proprer subject in fax document

        //public static String FaxSubjectIftaQuarterlyTaxReturn
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FaxSubjectIftaQuarterlyTaxReturn"];
        //    }
        //}

        ////Purpose   : To implement Fax Facility

        //public static String FromAddress
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FromAddress"];
        //    }
        //}
        ////Purpose   : To implement Fax Facility

        //public static String FromName
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FromName"];
        //    }
        //}

        ////Purpose   : To implement Fax Facility

        //public static String FromFax
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FromFax"];
        //    }
        //}

        ////Purpose   : To implement Fax Facility

        //public static String FromCompany
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FromCompany"];
        //    }
        //}
        ////Purpose   : To implement Fax Facility

        //public static String FromDept
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FromDept"];
        //    }
        //}
        ////Purpose   : To implement Fax Facility

        //public static String FaxAttachFilePath
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FaxAttachFilePath"];
        //    }
        //}
        ////Purpose   : To implement Fax Facility as per Lynns' test result
        //public static String AttachFileNamePath
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["AttachFileNamePath"];
        //    }
        //}
        ////Purpose   : To implement Fax Facility

        //public static String FaxXmlFilePath
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FaxXmlFilePath"];
        //    }
        //}

        ////Purpose   : To implement Fax Facility

        //public static String FtpPdfFileUri
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FtpPdfFileUri"];
        //    }
        //}

        ////Purpose   : To implement Fax Facility

        //public static String FtpXmlFileUri
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FtpXmlFileUri"];
        //    }
        //}
        ////Purpose   : To implement Fax Facility

        //public static String FtpPdfFileUserName
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FtpPdfFileUserName"];
        //    }
        //}
        ////Purpose   : To implement Fax Facility

        //public static String FtpPdfFilePassword
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FtpPdfFilePassword"];
        //    }
        //}

        ////Purpose   : To implement Fax Facility

        //public static String FtpXmlFileUserName
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FtpXmlFileUserName"];
        //    }
        //}

        ////Purpose   : To implement Fax Facility

        //public static String FtpXmlFilePassword
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FtpXmlFilePassword"];
        //    }
        //}

        ////Purpose   : To implement Fax Facility

        //public static String FaxNotifyAddress
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FaxNotifyAddress"];
        //    }
        //}

        ////Purpose   : To implement Fax Facility

        //public static String FaxNotifyAddressType
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FaxNotifyAddressType"];
        //    }
        //}
        ////Purpose   : To implement Fax Facility

        //public static String FaxNotifyMessage
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FaxNotifyMessage"];
        //    }
        //}
        ////Purpose   : To implement Fax Facility

        //public static String FaxNotifySubjectTemplate
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FaxNotifySubjectTemplate"];
        //    }
        //}
        ////Purpose   : To implement Fax Facility

        //public static String FaxNotifyMessageTemplate
        //{
        //    get
        //    {
        //        NameValueCollection CommonSettings = (NameValueCollection)ConfigurationManager.GetSection("mcs/FaxSettings");
        //        return CommonSettings["FaxNotifyMessageTemplate"];
        //    }
        //}
        //public static String ODOWTabImagePath
        //{
        //    get
        //    {
        //        ConfigManager configObj = new ConfigManager();
        //        return (configObj.getODOWProperty("generic", "ODOWTabImagePath"));
        //    }
        //}
        ////------------------------------------------------------------------------------------//

        ////Added by Jasmita on 28th Nov,2008 for ODOW edit matrix implementation
        //public static String DimensionXmlPath
        //{
        //    get
        //    {
        //        ConfigManager configObj = new ConfigManager();
        //        return (configObj.getODOWProperty("directory", "DimensionXmlPath"));
        //    }
        //}

        //public static String PermitSpecificationXmlPath
        //{
        //    get
        //    {
        //        ConfigManager configObj = new ConfigManager();
        //        return (configObj.getODOWProperty("directory", "PermitSpecificationXmlPath"));
        //    }
        //}

        //public static String WarningAndEscortsXmlPath
        //{
        //    get
        //    {
        //        ConfigManager configObj = new ConfigManager();
        //        return (configObj.getODOWProperty("directory", "WarningAndEscortsXmlPath"));
        //    }
        //}
        ////Added by Alok for ODOW edit matrix implementation
        //public static String GenericPermitRuleXmlPath
        //{
        //    get
        //    {
        //        ConfigManager configObj = new ConfigManager();
        //        return (configObj.getODOWProperty("directory", "GenericPermitRuleXmlPath"));
        //    }
        //}
        //public static String PermitApprovalEditXmlPath
        //{
        //    get
        //    {
        //        ConfigManager configObj = new ConfigManager();
        //        return (configObj.getODOWProperty("directory", "PermitApprovalEditMatrix"));//"WorkFlowEditMatrix"));//
        //    }
        //}
        //public static String WorkFlowEditMatrixEditXmlPath
        //{
        //    get
        //    {
        //        ConfigManager configObj = new ConfigManager();
        //        return (configObj.getODOWProperty("directory", "WorkFlowEditMatrix"));//"WorkFlowEditMatrix"));//
        //    }
        //}
    }
}
